package com.wva.common.domain.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class PageQueryDTO {
    /**
     * 页码，最小为1
     */
    @Min(value = 1)
    private Integer pageNo = 1;

    @Max(value = 100)
    private Integer pageSize = 20;

    private String sortBy;

    /**
     * 是否降序排序
     */
    private Boolean desc = true;
}
